<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <div class="card">
      <div class="show">
        <span class="price">$99</span>
        <img class="base" src="./img/1.png" alt="" />
        <div class="nav">
          <img onclick="changeImg(this)" src="./img/1.png" alt="" />
          <img onclick="changeImg(this)" src="./img/2.png" alt="" />
          <img onclick="changeImg(this)" src="./img/3.png" alt="" />
        </div>
      </div>
      <div class="info">
        <div class="name">wallpaper</div>
        <div class="dis">Awsome Minimalist wallpaper</div>
        <div class="bt">Buy</div>
      </div>
    </div>
  </body>
</html>
<script>
    var showBase = document.getElementsByClassName('base')
    
    function changeImg(img){
        showBase.src = img.src
    }
</script>
